<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>Hello MUI</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">

		<link rel="stylesheet" href="../css/mui.min.css">
		<script src="../js/mui.min.js"></script>
		<script src="../js/app.js"></script>
		<style>
			html,body {
				background-color: #efeff4;
			}
		</style>
		<script>
			mui.init();
		</script>
	</head>

	<body>

<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
	<h1 class="mui-title">Popovers cross webviews</h1>
	<a id="M_Popover_Trigger" class="mui-action-menu mui-icon mui-icon-bars mui-pull-right"></a>
</header>
<script>
	mui.plusReady(function() {
		var popover = plus.webview.create('popovers-with-cross-webviews-popover.html', null, {
			top: '45px',
			bottom: 0
		});
		plus.webview.currentWebview().append(popover);
		document.getElementById('M_Popover_Trigger').addEventListener('tap', function() {
			//mui hack plus event
			mui.fire(popover, 'plus:togglePopover');
		});
	});
</script>
</body>
</html>